package aiowang.springframe.h2.service.impl;

import aiowang.springframe.h2.dao.UserDao;
import aiowang.springframe.h2.service.UserService;
import aiowang.springframe.h2.vo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author aiowang
 * @description:
 * @date 2021/8/16 14:04
 */
@Service
public class UserServiceImpl implements UserService {

    private UserDao userdao;

    @Autowired
    public void setUserDao(UserDao userdao) {
        this.userdao = userdao;
    }

    @Override
    public List<User> listUser() {
        return userdao.listUser();
    }

}
